home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / prog / inter35b.zip / INTPRINT.DOC < prev    next >
Text File  |  1993-02-15  |  9KB  |  234 lines

  1.                 INTPRINT v2.22
  2.                             by Ralf Brown
  3.  
  4. The INTPRINT program is hereby donated to the public domain, with the sincere
  5. hope that proper credit will be retained in all copies and derivatives.
  6.  
  7. ------------------------------------------------------------------------------
  8.  
  9. INTPRINT.COM is a simple formatter for the interrupt list.  Use this
  10. program to print only a portion of the list, prevent widow lines at the
  11. beginning of a function call, number the pages, boldface key portions,
  12. center the printout, or create a summary of the function calls.  After
  13. formatting is complete, the total number of pages is displayed on the
  14. screen.
  15.  
  16. Usage:
  17.    intprint [options] intlist [[>|>>]outfile]
  18.  
  19. where the options are:
  20.         -b    boldface the title lines, Return:, and Notes: by overprinting
  21.         -B    boldface by sending printer control sequences
  22.  
  23.     -d    (duplex) print even/odd pages with different margins; suitable
  24.           for binding the printout.
  25.  
  26.         -e    assume printer is in elite mode (96 characters per line), and
  27.           indent the output eight spaces to center the printout.  This
  28.           is primarily for the default printer, as other printers may
  29.           force the equivalent or override this option.
  30.  
  31.         -ffile  create a file containing only the data structures described
  32.               in the interrupt list.
  33.           NOTE: you must put the filename immediately after the 'f'; no
  34.               blanks are allowed.
  35.  
  36.     -Ffile  filter the listing based on include and exclude strings
  37.           in 'file'.  Only entries whose headers match none of the
  38.           exclude strings and at least one of the include strings
  39.           will be processed.  All others will be skipped.
  40.           NOTE: you must put the filename immediately after the 'F'; no
  41.               blanks are allowed.
  42.  
  43.     -H    print a heading on each page indicating which interrupts
  44.           are listed on the page
  45.  
  46.         -iN   indent the output N spaces.  The output device is assumed to be
  47.               at least 80+N characters wide.
  48.           NOTE: you must put the number immediately after the 'i'; no
  49.               blanks are allowed.
  50.  
  51.     -I    assume the printer is capable of producing IBM character
  52.           graphics.  Printers other than "default" may force this option.
  53.  
  54.     -lN   print N lines per pages, overriding the printer-specific
  55.           default.
  56.     -LN   assume N lines on a page.  If this is more than the number of
  57.           lines to print on each page, INTPRINT will use line feeds to
  58.           advance to the next page instead of form feeds.
  59.  
  60.     -m    specify that the interrupt list is in multiple parts beginning
  61.           with the named file.  INTPRINT will increment the last
  62.           character of the name to get the next filename, and continue
  63.           until it is unable to open the file thus selected.
  64.  
  65.         -nN   assume N pages have already been printed, and start numbering
  66.               at N+1.  This option allows you to create a properly-numbered
  67.               printout even if there is not enough disk space to concatenate
  68.           the parts of the interrupt list or hold a complete output file.
  69.           See the examples below.
  70.           NOTE: you must put the number immediately after the 'n'; no
  71.               blanks are allowed.
  72.  
  73.         -p    print the page number at the bottom center of each page
  74.  
  75.     -Pname use control codes for the specified printer (-P? lists the
  76.           supported printers).  The printer name may be given in either
  77.           case and abbreviated to a unique prefix; use either dashes or
  78.           underscores in place of blanks in the printer name.
  79.  
  80.     -rN:M print only pages N through M.  The entire input is processed
  81.           for use in -s and -f summaries (see below) even though only
  82.           a portion is formatted for printing.  If filtering is enabled,
  83.           (see -F), page numbers are based on entries selected by the
  84.           filter file.
  85.           NOTE: you must put the page numbers immediately after the 'r';
  86.           no blanks are allowed.
  87.  
  88.         -sfile  create a one-line-per-function summary and write it to "file"
  89.               if -n is also given, the summary will be appended to "file",
  90.               allowing a properly numbered summary file to be created even if
  91.               there is not enough disk space to concatenate the parts of the
  92.               list.  See the examples below.
  93.           NOTE: you must put the filename immediately after the 's'; no
  94.               blanks are allowed.
  95.  
  96.     -tN   select typeface N for the chosen printer (currently supported
  97.           only for the HP).
  98.  
  99.     -wN   (widow lines) search N lines from the end of the page for a
  100.           good place to break.  The default is ten lines; the valid
  101.           range is from 3 to one-half of the page length.
  102.           NOTE: you must put the number immediately after the 'w'; no
  103.               blanks are allowed.
  104.  
  105.     -x    include Index: lines in formatted listing.  These lines are
  106.           are excluded by default because they are intended primarily
  107.           for use by hypertext converters.
  108.  
  109. Options may not be merged; "-ep" is illegal and the "p" will be ignored.
  110. Use "-e -p" instead.
  111.  
  112. The formatted result of the input file is sent to the specified output file,
  113. or to standard output if no output file is given.  Standard output may be
  114. redirected using the usual Unix or MSDOS redirection characters > or >>.  If
  115. you only want a summary file or data formats file, send or redirect the
  116. output to the null device ("NUL" under MSDOS, "/dev/null" under Unix).
  117.  
  118.  
  119. FILTER FILE:
  120. ------------
  121.  
  122. The filter file specified with -F is a simple text file containing
  123. include lines, exclude lines, and comment lines.  Include lines start
  124. with a plus sign (+) in the first column, followed immediately by the
  125. desired string; exclude lines start with a minus sign (-) in the first
  126. column, followed immediately by the desired string.  Comment lines
  127. start with a hash mark (#) in the first column and are ignored.  A
  128. future version of INTPRINT will include alternate forms of include and
  129. exclude lines which will select based on the classification letter in
  130. the divider lines rather than the contents of title lines.
  131.  
  132. If a filter file is specified, only entries whose title lines contain
  133. at least one of the include lines (ignoring uppercase/lowercase
  134. distinctions) and none of the exclude lines are processed.  Thus, a
  135. filter file must contain at least one include line, or INTPRINT will
  136. skip all interrupt entries and print only the non-interrupt text in the
  137. file.
  138.  
  139. All spaces on include and exclude lines are significant.  Thus,
  140.     + DOS
  141. will only match entries containing the four-letter sequence " DOS",
  142. while
  143.     +DOS
  144. will match any entries containing the sequence "DOS", whether or not it
  145. is preceded by a blank.
  146.  
  147. ----cut here----
  148. # SAMPLE.FLT
  149. # Sample filtering file.  Extract MS-DOS calls, but exclude
  150. # DR-DOS-specific, DOS-extender, and non-DOS networking calls.
  151. # Note: a few extraneous calls are still included.
  152. #
  153. + DOS
  154. -DR DOS
  155. -DR-DOS
  156. -DR Multiuser DOS
  157. -Concurrent DOS
  158. -DOS/16M
  159. -DOS4GX
  160. -DOS/4G
  161. -extender
  162. -LAN Manager
  163. -DECnet DOS
  164. #
  165. # end of SAMPLE.FLT
  166. ----cut here----
  167.  
  168.  
  169. ------------------------------------------------------------------------------
  170.  
  171. EXAMPLES:
  172. ---------
  173.  
  174.         Print the interrupt list with page numbers, and create a summary file,
  175.     without concatenating INTERRUP.A, INTERRUP.B, and INTERRUP.C:
  176.  
  177.         A> intprint -sb:interrup.sum -p interrup.a >prn
  178.         116 pages.   [screen output from INTPRINT]
  179.         A> intprint -sb:interrup.sum -p -n116 interrup.b prn
  180.         261 pages.   [screen output from INTPRINT]
  181.         A> intprint -sb:interrup.sum -p -n261 interrup.c >prn
  182.         386 pages.   [screen output from INTPRINT]
  183.  
  184.     or, more easily:
  185.         A> intprint -sb:interrup.sum -m -p interrup.a prn
  186.         942 pages.   [screen output from INTPRINT]
  187.  
  188.         Create only a summary file:
  189.  
  190.         C> intprint -sinterrupt.sum interrup.lst nul
  191.  
  192.     Print only those entries containing the string "DOS", except
  193.     those containing the string "DR-DOS"
  194.  
  195.         C> type dos
  196.         +DOS
  197.         -DR-DOS
  198.  
  199.         C> intprint -Fdos interrup.lst nul
  200.         
  201.  
  202.         Print the interrupt list on an Epson FX80, using 54 lines per page and
  203.         omitting both page numbers and summary:
  204.  
  205.         C> intprint -Pepson -l54 interrup.lst >prn
  206.  
  207.     Print the interrupt list using 120 lines on every 132-line page (using
  208.     superscript mode, for example), and make divider lines using IBM
  209.     character graphics:
  210.  
  211.         C> intprint -I -l120 -L132 interrup.lst >prn
  212.  
  213.     Print only pages 123 through 127, assuming that 106 pages are contained
  214.     in the first section of the list:
  215.  
  216.         C> intprint -n106 -r123:127 interrup.b prn
  217.  
  218.     Print using HP PCL4/5 escape sequences, numbering pages, from file
  219.     "interrup.lst" to file "interrup.pcl", at the default 69 lines per
  220.     page, using form-feeds:
  221.  
  222.         C> intprint -Php -p interrup.lst >interrup.pcl
  223.         942 pages.   [screen output from INTPRINT]
  224.  
  225. ------------------------------------------------------------------------------
  226.  
  227. PORTABILITY:
  228. ------------
  229.  
  230. INTPRINT.C contains the source code for INTPRINT, for those people who are
  231. using the interrupt list on a machine which does not run MSDOS.  This code has
  232. been tested with Turbo C and Mach (BSD 4.3 Unix) "cc".
  233.  
  234.